package me.maiz.babyisland.es.entity;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;
import java.math.BigDecimal;

@Document(indexName = "babyisland",type = "product")
@Data
public class ProductDocument implements Serializable {

    private Integer id;

    /**
     * 分类
     */
    private Integer categoryId;

    /**
     * 主图
     */
    private String mainImg;

    private String productName;

    private BigDecimal suggestPrice;

    private BigDecimal price;

    /**
     * json格式保存
     */
    private String model;

    private Integer stock;

    /**
     * 介绍
     */
    private String description;

    /**
     * 销量
     */
    private Integer salesCount;




}
